package com.stoken.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.stoken.dao.MemberLeaveMessageDao;
import com.stoken.dao.MemberLeaveReplyDao;
import com.stoken.dao.NoticeDao;
import com.stoken.domain.MemberLeaveMessage;
import com.stoken.domain.MemberLeaveReply;
import com.stoken.domain.Notice;
import com.stoken.service.MemberLeaveMessageService;
import com.stoken.service.NoticeService;
import com.symbio.commons.Page;
import com.symbio.dao.hibernate.GenericDaoImpl;
import com.symbio.service.impl.AbstractServiceImpl;

@Service
public class MemberLeaveMessageServiceImpl extends AbstractServiceImpl<MemberLeaveMessage, Long> implements MemberLeaveMessageService{
	
    @Autowired
	private MemberLeaveMessageDao memberLeaveMessageDao;
    
    @Autowired
   	private MemberLeaveReplyDao memberLeaveReplyDao;

	@Override
	public GenericDaoImpl<MemberLeaveMessage, Long> getDao() {
		return memberLeaveMessageDao;
	}

	@Override
	public Page<MemberLeaveMessage> find(Page<MemberLeaveMessage> pageData,long id) {
		return memberLeaveMessageDao.findListByPid(pageData,id);
	}

	@Override
	public Page<MemberLeaveMessage> findAll(Page<MemberLeaveMessage> pageData) {		
		return memberLeaveMessageDao.find(pageData);
	}


    


}
